<div class="container" ng-controller="CompanysDetailCtrl">
    <div class="body companydetail_body">
        <ul class="tabs">
            <li class="active">企业信息</li>
            <li>项目经理</li>
            <li>企业业绩</li>
            <li>不良行为</li>
        </ul>
        <div class="tabs-child" style="width:80%;background:#fff;margin:0px auto 30px;min-height: 600px;padding-bottom:50px;">
            <div class="active">
                <table class="table-top" style="width:100%;">
                    <tr>
                        <td rowspan="3" class="leader_title">基<br>本<br>信<br>息</td>
                        <td class="second_title">单位名称</td>
                        <td colspan="3">{{companydetail.companyName}}</td>
                        <td colspan="2" class="btn_update"><button>变更历史</button></td>
                    </tr>
                    <tr>
                        <td class="second_title">新档案号</td>
                        <td>{{companydetail.newArchiveID}}</td>
                        <td class="second_title">新档案号</td>
                        <td colspan="3"></td>
                    </tr>
                    <tr>
                        <td class="second_title">注册地区</td>
                        <td>{{companydetail.registerArea}}</td>
                        <td class="second_title">企业地点类别</td>
                        <td colspan="3">{{companydetail.companyAreaType}}</td>
                    </tr>
                    <tr>
                        <td rowspan="5" class="leader_title">资<br>质<br>证<br>书</td>
                        <td class="second_title">证书编号</td>
                        <td>
                            {{companydetail.certificateID}}
                            <a target="_blank" ng-click="viewOrigin(1)" href="#/companyimg/1/{{data.companyID}}" id="viewOrigin" style="float:right;margin-right:10px;">查看原件</a>
                        </td>
                        <td class="second_title">发证机关</td>
                        <td colspan="3">{{companydetail.certificationAuthority}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">法定负责人</td>
                        <td>{{companydetail.legalRepresentative}}</td>
                        <td class="second_title">职务</td>
                        <td colspan="3">董事长</td>
                    </tr>
                    <tr>
                        <td class="second_title">企业负责人</td>
                        <td>{{companydetail.enterprisePrincipal}}</td>
                        <td class="second_title">职务</td>
                        <td colspan="3">项目经理</td>
                    </tr>
                    <tr>
                        <td class="second_title">技术负责人</td>
                        <td>{{companydetail.technologyDirector}}</td>
                        <td class="second_title">职务</td>
                        <td colspan="3">技术主管</td>
                    </tr>
                    <tr>
                        <td class="second_title">备注</td>
                        <td colspan="2">{{companydetail.remarks}}</td>
                    </tr>
                    <tr>
                        <td rowspan="4" class="leader_title">营<br>业<br>执<br>照</td>
                        <td class="second_title">注册号</td>
                        <td>
                            {{companydetail.licenseID}}
                            <a target="_blank" ng-click="viewOrigin(2)" href="#/companyimg/2/{{data.companyID}}" id="viewOrigin" style="float:right;margin-right:10px;">查看原件</a>
                        </td>
                        <td class="second_title">注册资本(万元)</td>
                        <td colspan="3">{{companydetail.registeredCapital}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">公司类型</td>
                        <td colspan="5">{{companydetail.companyType}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">成立时间</td>
                        <td colspan="5">{{companydetail.foundingTime}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">营业期限</td>
                        <td colspan="5">{{companydetail.businessTermFrom}}至{{companydetail.businessTermEnd}}</td>
                    </tr>
                    <tr>
                        <td rowspan="4" class="leader_title">安<br>全<br>生<br>产<br>许<br>可<br>证</td>
                        <td class="second_title">编号</td>
                        <td>
                            {{companydetail.safetyProductionPermitID}}
                            <a target="_blank" ng-click="viewOrigin(3)" href="#/companyimg/3/{{data.companyID}}" id="viewOrigin" style="float:right;margin-right:10px;">查看原件</a>
                        </td>
                        <td class="second_title">主要负责人</td>
                        <td colspan="3">{{companydetail.safePrincipal}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">许可范围</td>
                        <td colspan="5">{{companydetail.businessScope}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">发证机关</td>
                        <td colspan="5">{{companydetail.safeAuthority}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">发证时间</td>
                        <td>{{companydetail.safeFromDate}}</td>
                        <td class="second_title">有效期</td>
                        <td colspan="3">{{companydetail.safeEndDate}}</td>
                    </tr>
                    <tr>
                        <td rowspan="9" width="7%" class="leader_title">信<br>用<br>手<br>册</td>
                        <td width="12%" class="second_title">手册编号</td>
                        <td width="30%">
                            {{companydetail.creditBookID}}
                            <a target="_blank" ng-click="viewOrigin(3)" href="#/companyimg/4/{{data.companyID}}" id="viewOrigin" style="float:right;margin-right:10px;">查看原件</a>
                        </td>
                        <td width="15%" class="second_title">信用评分(上半年)</td>
                        <td width="10%">{{companydetail.creditScore2}}</td>
                        <td width="15%" class="second_title">信用评分(下半年)</td>
                        <td width="9%">{{companydetail.creditScore1}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">有效期</td>
                        <td colspan="2">{{companydetail.creditEndDate}}</td>
                        <td class="second_title">发证单位</td>
                        <td colspan="2">{{companydetail.creditAuthority}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">详细地址</td>
                        <td colspan="5">{{companydetail.creditAddress}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">企业网址</td>
                        <td colspan="5">{{companydetail.creditWebSet}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">联系人</td>
                        <td colspan="5">{{companydetail.creditContact}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">驻宁地址</td>
                        <td colspan="5">{{companydetail.creditNjAddress}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">驻宁负责人</td>
                        <td colspan="5">{{companydetail.creditNjPrincipal}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">驻宁技术负责人</td>
                        <td colspan="5">{{companydetail.creditNjTech}}</td>
                    </tr>
                    <tr>
                        <td class="second_title">驻宁财务负责人</td>
                        <td colspan="5">{{companydetail.creditFinancialStaff}}</td>
                    </tr>
                    <tr>
                        <td colspan="2" class="leader_title">公司简介</td>
                        <td colspan="5">{{companydetail.companyBrief}}</td>
                    </tr>
                </table>
                <table border="1" style="margin: 22px auto 0px;width:100%;" class="table-bottom">
                    <tr>
                        <td rowspan="4" width="8%">资<br>质<br>证<br>书<br>情<br>况</td>
                        <td width="14%">序号</td>
                        <td width="32%">主项/增加</td>
                        <td width="32%">资质等级</td>
                        <td width="14%">查看</td>
                    </tr>
                    <tr>
                        <td><span>1</span></td>
                        <td>主项</td>
                        <td>城市园林绿化一级</td>
                        <td><button>查看</button></td>
                    </tr>
                    <tr>
                        <td><span>2</span></td>
                        <td>主项</td>
                        <td>城市园林绿化一级</td>
                        <td><button>查看</button></td>
                    </tr>
                </table>
            </div>
            <div>
                <table border="1" style="width:100%;" class="table-bottom">
                    <tr>
                        <td width="8%">序号</td>
                        <td width="11%">姓名</td>
                        <td width="11%">性别</td>
                        <td width="28%">证号</td>
                        <td width="12%">专业等级</td>
                        <td width="16%">在建工程个数</td>
                        <td width="14%">查看</td>
                    </tr>
                    <tr ng-repeat="manager in data.managerList">
                        <td><span>{{number + $index + 1}}</span></td>
                        <td>{{manager.managerName}}</td>
                        <td>{{manager.gender}}</td>
                        <td>{{manager.safetyAssessment}}</td>
                        <td>{{manager.positionalTitles}}</td>
                        <td></td>
                        <td><button>查看</button></td>
                    </tr>
                </table>
                <div class="btn_group">
                    <button ng-click="btnSearchManager()">搜索</button>
                    <button ng-disabled="data.prevDisable" ng-click="prevPageBtn()">上一页</button>
                    <button ng-disabled="data.nextDisable" ng-click="nextPageBtn()">下一页</button>
                    <button>查找</button>
                </div>
                <div class="alert_search manager" style="background:url('./images/company_search_bg1.png') center center;">
                    <input type="text" ng-model="data.search">
                </div>
            </div>
            <div>
                <ul class="tabs-next" style="margin-bottom:0px;">
                    <li class="active" style="width:50%;">场内项目的业绩</li>
                    <li style="width:50%;">单位自行增加的业绩</li>
                </ul>
                <div class="performance">
                    <div class="active">
                        <table border="1" style="width:100%;" class="table-bottom">
                            <tr>
                                <td width="8%">序号</td>
                                <td width="23%">工程名称</td>
                                <td width="23%">建设单位</td>
                                <td width="11.5%">中标时间</td>
                                <td width="11.5%">中标金额(万)</td>
                                <td width="11.5%">项目经理</td>
                                <td width="11.5%">查看</td>
                            </tr>
                            <tr ng-repeat="achieve in data.achieveList track by $index">
                                <td><span>{{(achieveNumber + $index + 1)}}</span></td>
                                <td>{{achieve.projectName}}</td>
                                <td>{{achieve.companyName}}</td>
                                <td>{{achieve.winBiddingDate}}</td>
                                <td>{{achieve.price | currency:"¥"}}</td>
                                <td>{{achieve.projectManagerName}}</td>
                                <td><button>查看</button></td>
                            </tr>
                        </table>
                        <div class="btn_group">
                            <button ng-click="btnSearchProject()">搜索</button>
                            <button ng-disabled="data.achievePrevDisable" ng-click="achievePrevPageBtn()">上一页</button>
                            <button ng-disabled="data.achieveNextDisable" ng-click="achieveNextPageBtn()">下一页</button>
                            <button>查找</button>
                        </div>
                        <div class="alert_search project" style="background:url('./images/company_search_bg2.png') center center;">
                            <input type="text" ng-model="data.search">
                        </div>
                    </div>
                    <div>
                        <table border="1" style="width:100%;" class="table-bottom">
                            <tr>
                                <td width="8%">序号</td>
                                <td width="23%">工程名称</td>
                                <td width="23%">建设单位</td>
                                <td width="11.5%">中标时间</td>
                                <td width="11.5%">中标金额(万)</td>
                                <td width="11.5%">项目经理</td>
                                <td width="11.5%">查看</td>
                            </tr>
                            <tr ng-repeat="selfAchieve in data.selfAchieveList track by $index">
                                <td><span>{{(selfAchieveNumber + $index + 1)}}</span></td>
                                <td>{{selfAchieve.projectName}}</td>
                                <td>{{selfAchieve.companyName}}</td>
                                <td>{{selfAchieve.winBiddingDate}}</td>
                                <td>{{selfAchieve.price | currency:"¥"}}</td>
                                <td>{{selfAchieve.projectManagerName}}</td>
                                <td><button>查看</button></td>
                            </tr>
                        </table>
                        <div class="btn_group">
                            <button ng-click="searchBtn()">搜索</button>
                            <button ng-disabled="data.selfAchievePrevDisable" ng-click="selfAchievePrevPageBtn()">上一页</button>
                            <button ng-disabled="data.selfAchieveNextDisable" ng-click="selfAchieveNextPageBtn()">下一页</button>
                            <button>查找</button>
                        </div>
                        <table class="input_group" border="1px solid #1ebdff">
                            <tr>
                                <td width="50%">
                                    <span class="td_left">标段编号</span>
                                    <input type="text">
                                </td>
                                <td width="50%">
                                    <span class="td_right">项目经理</span>
                                    <input type="text">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span class="td_left">工程名称</span>
                                    <input type="text">
                                </td>
                                <td>
                                    <span class="td_right">标段额</span>
                                    <input type="text" style="width:17.6%;">到<input type="text" style="width:17.6%;">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span class="td_left">撤出变更申请表编号</span>
                                    <input type="text">
                                </td>
                                <td></td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
            <div>
                <table border="1" style="width:100%;" class="table-bottom">
                    <tr>
                        <td width="7%">序号</td>
                        <td width="11%">不良行为</td>
                        <td width="11%">情节后果</td>
                        <td width="11%">处罚种类</td>
                        <td width="11%">处罚机关</td>
                        <td width="11%">处理时间</td>
                        <td width="19%">公示期限使</td>
                        <td width="19%">公示期限止</td>
                    </tr>
                    <tr ng-repeat="conduct in data.conductList">
                        <td><span>{{(conductNumber + $index + 1)}}</span></td>
                        <td>{{conduct.conductName}}</td>
                        <td>{{conduct.consequence}}</td>
                        <td>{{conduct.penaltyType}}</td>
                        <td>{{conduct.penaltyAuthority}}</td>
                        <td>{{conduct.penaltyDate}}</td>
                        <td>{{conduct.publicDateFrom}}</td>
                        <td>{{conduct.publicDateEnd}}</td>
                    </tr>
                </table>
                <div class="btn_group">
                    <button ng-click="searchBtn()">首页</button>
                    <button ng-disabled="data.conductPrevDisable" ng-click="conductPrevPageBtn()">上一页</button>
                    <button ng-disabled="data.conductNextDisable" ng-click="conductNextPageBtn()">下一页</button>
                    <button>尾页</button>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- Button trigger modal -->

<!-- Modal -->

<!--<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">-->
    <!--<div class="modal-dialog" role="document">-->
        <!--<div class="modal-content">-->
            <!--<div class="modal-header">-->
                <!--<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
            <!--</div>-->
            <!--<div class="modal-body">-->
                <!--<img ng-src="" alt="">-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->
<!--<div class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">-->
    <!--<div class="modal-dialog" role="document">-->
        <!--<div class="modal-content">-->
            <!--<div class="modal-header">-->
                <!--<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
            <!--</div>-->
            <!--<div class="modal-body">-->

            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->
